<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<meta charset="UTF-8"></meta>
	<title>Thêm quán ăn</title>
	<link rel="stylesheet" type="text/css"
		href="resources/css/bootstrap.css" media="all" />
	<link rel="stylesheet" type="text/css"
		href="resources/css/bootstrap-responsive.css" media="all" />
	<link rel="stylesheet" type="text/css"
		href="resources/css/flexslider.css" media="all" />
	<link rel="stylesheet" type="text/css"
		href="resources/css/font-awesome.css" media="all" />
	<link rel="stylesheet" type="text/css"
		href="resources/css/prettyPhoto.css" media="all" />
	<link rel="stylesheet" type="text/css" href="resources/css/red.css"
		media="all" />
	<link rel="stylesheet" type="text/css"
		href="resources/css/sidebar-nav.css" media="all" />
	<link rel="stylesheet" type="text/css" href="resources/css/style.css"
		media="all" />
	<link rel="stylesheet" type="text/css"
		href="resources/css/icon-css.css" media="all" />
	<link href="resources/css/webwidget_menu_glide.css" rel="stylesheet"
		type="text/css" />
	<link rel="stylesheet" type="text/css"
		href="resources/css/nice-menu.css" media="all" />
	<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
</h:head>
<h:body>

	<!-- Include Header -->
	<ui:include src="./header.xhtml"></ui:include>
	<!-- End Header -->

	<div class="container">
		<!-- Left menu & content -->
		<div class="row" style="margin-left: 0px">
			<div class="row-fluid">
				<div class="row-fluid">

					<!-- Include Left Menu -->
					<ui:include src="./leftMenu.xhtml" />
					<!-- End Left Menu -->

					<!-- Content -->
					<h:form enctype="multipart/form-data">
						<center>
							<b><h2>Thêm quán ăn mới</h2></b>
							<table border="0" cellpadding="0" cellspacing="0">
								<tr>
									<th align="left">Địa chỉ quán ăn:</th>
									<td><h:inputText type="text"
											value="#{quanAnManageBean.diaChiQA}" class="insert-inp"></h:inputText>
									</td>
								</tr>
								<tr>
									<th align="left">Mô tả quán ăn:</th>
									<td><h:inputText type="text"
											value="#{quanAnManageBean.moTaQA}" class="insert-inp"></h:inputText>
									</td>
								</tr>
								<tr>
									<th align="left">Trạng thái duyệt quán ăn:</th>
									<!-- <td><h:inputText type="text"
						value="#{nhaTroManagedBean.trangThaiDuyetNT}" class="insert-inp"></h:inputText>
				</td> -->
									<td><INPUT TYPE="radio" NAME="radios" disabled="disabled"
										VALUE="#{quanAnManageBean.trangThaiDuyetQA}"> Yes</INPUT> <INPUT
										TYPE="radio" NAME="radios" checked="true"
										VALUE="#{quanAnManageBean.trangThaiDuyetQA}"> No</INPUT></td>
								</tr>
								<tr>
									<th align="left">Tên tài khoản chủ QA:</th>
									<td><h:inputText type="text"
											value="#{quanAnManageBean.tenTKCQA}" class="insert-inp"></h:inputText>
									</td>
								</tr>
								<tr>
									<th align="left">Tên tài khoản Quản trị viên:</th>
									<td><h:inputText type="text"
											value="#{quanAnManageBean.tenTKQTV}" class="insert-inp"></h:inputText>
									</td>
								</tr>
								<tr>
									<th align="left">Hình ảnh:</th>
									<td><p:fileUpload value="#{quanAnManageBean.file}"
											fileUploadListener="#{quanAnManageBean.upload}"
											sizeLimit="100000" fileLimit="3"
											allowTypes="/(\.|\/)(gif|jpe?g|png)$/"
											description="Chọn hình" /></td>
								</tr>
								<tr>
									<th></th>
									<td></td>
								</tr>
								<tr>
									<th></th>
									<td><h:commandButton value="Thêm mới"
											class="btn btn-primary" style="width: 100px"
											action="#{quanAnManageBean.insert}" /></td>
								</tr>
							</table>
						</center>
					</h:form>
					<!-- End Content -->
				</div>
			</div>
		</div>
	</div>

	<!-- Include Footer -->
	<ui:include src="./footer.xhtml"></ui:include>
	<!-- End Footer -->
</h:body>
</html>